<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<span th:text="${#strings.isEmpty(user)}"></span><br>
<span th:text="${#strings.startsWith(user,'2')}"></span><br>
<span th:text="${#strings.endsWith(user,'0')}"></span><br>
<span th:text="${#strings.contains(user,'2')}"></span><br>
<span th:text="${#dates.format(time)}"></span><br>
取出时间中的年 、月、日<br>
<span th:text="${#dates.year(time)}"></span><br>
<span th:text="${#dates.month(time)}"></span><br>
<span th:text="${#dates.day(time)}"></span><br>
<hr>
<span th:if="${sex==0}">男</span><br>
<span th:if="${sex==1}">女</span><br>
<div th:switch="${count}">
    <span th:case="1">count=1</span>
    <span th:case="2">count=2</span>
    <span th:case="3">count=3</span>
</div>

</body>
</html>